<div id="userBG">
  <div id="userp_width">
    <div id="userp_container" align="center">
      
      <!-- TODO Need to create new background image for the flash messages that appear on black backgrounds. -->
      <% if flash[:notice] %>
      	<h1><%= flash[:notice] %></h1>
        <br/>
      <% end %>
   	  
   	  <% form_for :user, :url => users_path, :html => { :method => :post, :id => :thisform } do |form| %>    
		    <div id="user_border"> 

		      <div id="user_bar"><h2>Create a new user (all fields are required)</h2></div>
		      
		      <div id="clear"></div>
	        
	        <div id="lognpass">
            <br />
            <table>
		          <tr>
	              <th width="215">First Name: </th>
	              <td width="408"><%= form.text_field :first_name, :size => 50 %></td>
	            </tr>
		          <tr>
	              <th>Last Name: </th>
	              <td><%= form.text_field :last_name, :size => 50 %></td>
	            </tr>
	            <tr>
	              <th>Email: </th>
	              <td><%= form.text_field :email, :size => 50 %></td>
	            </tr>
		          <tr>
	              <th>Login: </th>
	              <td><%= form.text_field :login, :size => 50 %></td>
	            </tr>
	            <tr>
	              <th>Password: </th>
	              <td><%= form.password_field :password, :size => 50 %></td>
	            </tr>
	            <tr>
	              <th>Password confirmation: </th>
	              <td><%= form.password_field :password_confirmation, :size => 50 %></td>
	            </tr>
	          </table>
	          
	          <br/>
            
            <div id="user_bar">
    		      <h2>Roles (check to give roles)</h2>
    		      <div id="clear"></div>
    		    </div>
  		    
    		    <br/>
	          
	          <table>
    		      <% Role.find(:all).each do |role| %>
    		        <tr>
    		          <th><%= role.name %></th>
    		          <td><%= check_box_tag "user[role_ids][]", role.id, @user.roles.include?(role) %></td>
    		        </tr>
    				  <% end %>
    				</table>
    				
          </div>
	        
	        <ul align="right" id="formbtn">
	          <li class="horizontal"><%= link_to "cancel", dashboards_path %></li>
	          <li class="horizontal">
              <%= submit_tag  "create", 
                              :class => "btn", 
                              :onmouseover => "this.className='btn btnhov'", 
                              :onmouseout => "this.className='btn'" %>
            </li>
          </ul>
		      
		    </div> <!-- END user_border -->
	    <% end %>
	    
    </div> <!-- END userp_container -->
  </div> <!-- END userp_width -->
</div> <!-- END userBG -->